<template>
  <div>
    hello 你好  {{ message }}

    <button @click="change">点我</button>
  </div>
</template>


<script setup>
import { defineProps, defineEmits } from 'vue'

defineProps(['message']);
const emits = defineEmits(['changeMessage'])


const change = () => {
  emits('changeMessage', '哈哈哈哈')
}
</script>